package com.hr.service.impl;
import java.util.List;

import com.hr.dao.PositionDao;
import com.hr.dao.impl.PositionDaoImpl;
import com.hr.pojo.Position;
import com.hr.service.PositionService;
public class PositionServiceImpl implements PositionService{
	private PositionDao positionDao = new PositionDaoImpl();
	@Override
	public List findAllPosition() {
		return positionDao.findAllPosition();
	}
	@Override
	public void savePosition(Position position) {
		
		positionDao.saveSalary(position);
	}
	@Override
	public Position findPositionById(String id) {
		
		return positionDao.findPositionById(id);
	}
	@Override
	public void updatePosition(Position position) {
		
		positionDao.updatePosition(position);	
	}
	@Override
	public void delete(String id) {
	
		positionDao.deletePosition(id);	
	}
}
